<template>
  <div id="app">
    <nav>
      <router-link to="/" tag="span">商品列表</router-link>
      <router-link to="/shopcart" tag="span">购物车</router-link>
    </nav>
	<router-view/>
  </div>
</template>

<style>
	*{
		margin: 0;
		padding: 0;
	}
</style>
<style scoped>
	nav{
		position: fixed;
		bottom: 0;
		width: 100%;
		z-index: 100;
	}
	nav span{
		font-weight: bold;
		background-color: white;
		width: 50%;
		display: inline-block;
		text-align: center;
		height: 50px;
		line-height: 50px;
		border-top: solid 1px #ccc;
	}
	nav span.router-link-exact-active{
		color: #f18741;
		background-color:#fef5ef ;
	}
</style>
